home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98c.txt / 000120_icon-group-sender _Thu Dec 10 09:20:22 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  924b

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id JAA07291
  4.     for icon-group-addresses; Thu, 10 Dec 1998 09:18:52 -0700 (MST)
  5. Message-Id: <199812101618.JAA07291@baskerville.CS.Arizona.EDU>
  6. Date: Wed, 09 Dec 1998 16:31:40 -0600
  7. From: MJE <evans.nospam@gte.net>
  8. To: icon-group@optima.CS.Arizona.EDU
  9. Subject: Options File Name Failure
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12.  
  13. The command-line parsing routines in the options library don't handle
  14. filenames with spaces.  It will unquote a filename enclosed in quote
  15. marks, but if a space appears anywhere in the name, then it will become
  16. truncated just prior to the space.
  17.  
  18. The code below can be used to test these statements.
  19.  
  20. Mark
  21.  
  22.  
  23.  
  24. procedure main(args)
  25.  
  26.  obttbl := options(args,"-file:-skip:")
  27.  
  28.  every x := key(obttbl) do
  29.    write(x," : ",obttbl[x])
  30.  
  31. end
  32.  
  33.